function setimg(index) {
	let l2 = $('#footdiv').children('div');
	console.log(l2.length);
	for(let i = 0; i < l2.length; i++) {
		if(index == l2[i].id && index != 3) {
			let img = g(index).getElementsByTagName('img')[0];
			img.src = "img/" + img.id + "01.png";
			g('div' + l2[i].id).className = 'show';
			setheader(index);
		} else if(l2[i].id != 3) {
			let img = l2[i].getElementsByTagName('img')[0];
			img.src = "img/" + img.id + "02.png";
			g('div' + l2[i].id).className = 'hidden';
		}
	}
	localStorage.setItem("indextype", index);
}

function setheader(id) {
	let head = g("headerid");
	if(id == 1) head.innerHTML = "工作台";
	if(id == 2) head.innerHTML = "库存管理";
	if(id == 4) head.innerHTML = "统计";
	if(id == 5) head.innerHTML = "我的";
}